package com.tmp.alarm.model;

import java.io.Serializable;

/**
 */
public class QueueModel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4450022508696780454L;
	private long id;
	private String log_time;
	private String type;
	private String queue_name;
	private String used_memory;
	private String used_vcore;
	private String active_job_num;
	private String pending_job_num;
	private String min_memory;
	private String min_vcore;
	private String max_memory;
	private String max_vcore;

	public QueueModel(String line) {
		String[] infos = line.split("\\|");
		if (infos.length >= 10) {
			// 201801041150|root.bdp_jmart_mobile_union.bdp_jmart_mobile_analysis|27848704|11371|253|38|43000000|13000|50000000|17000
			this.log_time = infos[0].trim();
			this.queue_name = infos[1].trim();
			this.used_memory = infos[2].trim();
			this.used_vcore = infos[3].trim();
			this.active_job_num = infos[4].trim();
			this.pending_job_num = infos[5].trim();
			this.min_memory = infos[6].trim();
			this.min_vcore = infos[7].trim();
			this.max_memory = infos[8].trim();
			this.max_vcore = infos[9].trim();
		}
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getLog_time() {
		return log_time;
	}

	public void setLog_time(String log_time) {
		this.log_time = log_time;
	}

	public String getQueue_name() {
		return queue_name;
	}

	public void setQueue_name(String queue_name) {
		this.queue_name = queue_name;
	}

	public String getUsed_memory() {
		return used_memory;
	}

	public void setUsed_memory(String used_memory) {
		this.used_memory = used_memory;
	}

	public String getUsed_vcore() {
		return used_vcore;
	}

	public void setUsed_vcore(String used_vcore) {
		this.used_vcore = used_vcore;
	}

	public String getActive_job_num() {
		return active_job_num;
	}

	public void setActive_job_num(String active_job_num) {
		this.active_job_num = active_job_num;
	}

	public String getPending_job_num() {
		return pending_job_num;
	}

	public void setPending_job_num(String pending_job_num) {
		this.pending_job_num = pending_job_num;
	}

	public String getMin_memory() {
		return min_memory;
	}

	public void setMin_memory(String min_memory) {
		this.min_memory = min_memory;
	}

	public String getMin_vcore() {
		return min_vcore;
	}

	public void setMin_vcore(String min_vcore) {
		this.min_vcore = min_vcore;
	}

	public String getMax_memory() {
		return max_memory;
	}

	public void setMax_memory(String max_memory) {
		this.max_memory = max_memory;
	}

	public String getMax_vcore() {
		return max_vcore;
	}

	public void setMax_vcore(String max_vcore) {
		this.max_vcore = max_vcore;
	}

}
